package com.zzz.enums;

/**
 * @author zhr
 */
public class TM {
    public static void main(String[] args) {

        System.out.println(T.getFromCode("a"));

        long st = System.currentTimeMillis();
        int n = 100000000;
        for(int i = 0; i < n; i++) {
            T.valueOf("A");
        }
        System.out.println("spent time: "+ (System.currentTimeMillis() - st) +" ms");
        st = System.currentTimeMillis();
        for(int i = 0; i < n; i++) {
            T.getFromCode("a");
        }
        System.out.println("spent time: "+ (System.currentTimeMillis() - st) +" ms");


    }
}
